import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

public class PutListener implements ActionListener {
    String object = "apple";

    public void setObjct(String ob) {
        this.object = ob;
    }

    public void actionPerformed(ActionEvent e) {
        String str = e.getActionCommand();
        System.out.println(str + object);

        PutSQL putSQL = new PutSQL();
        putSQL.writePut(this.object);
    }
}
